package com.training.java.core.inheritance;

public class RaceCarDemo {

	public static void main(String[] args) {
		
		RaceCar raceCar = new RaceCar(2013, "Ford", "Focus", false);
		
		raceCar.start();
		raceCar.race();
		int currentSpeed = raceCar.getCurrentSpeed();
		System.out.println("Current speed = " + currentSpeed);
		System.out.println(raceCar.toString());
		raceCar.stop();
	}
}
		
